export default {
    cartItems: state => state.cartItems,
    
    cartTotal: state => {
      return state.cartItems.reduce((total, item) => {
        return total + (item.price * item.quantity)
      }, 0)
    }
  }